package com.spring.mongo.model;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import com.alibaba.fastjson.JSON;

@Document(collection = "question")
public class Question {

	@Id
	String id;
	String uid;
	int qType;
	String cType;
	String qcontent;
	int ct;
	int at;
	int status;
	int valid;
	int publiced;
	String docid;
	int atype;
	String acontent;
	int mt;
	int viewNum;
	int usefulNum;
	int type;
	int order;
	int from;
	int publiced_doc;
	int viewNumFake;
	int usefulNumFake;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public int getqType() {
		return qType;
	}

	public void setqType(int qType) {
		this.qType = qType;
	}

	public String getcType() {
		return cType;
	}

	public void setcType(String cType) {
		this.cType = cType;
	}

	public String getQcontent() {
		return qcontent;
	}

	public void setQcontent(String qcontent) {
		this.qcontent = qcontent;
	}

	public int getCt() {
		return ct;
	}

	public void setCt(int ct) {
		this.ct = ct;
	}

	public int getAt() {
		return at;
	}

	public void setAt(int at) {
		this.at = at;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getValid() {
		return valid;
	}

	public void setValid(int valid) {
		this.valid = valid;
	}

	public int getPubliced() {
		return publiced;
	}

	public void setPubliced(int publiced) {
		this.publiced = publiced;
	}

	public String getDocid() {
		return docid;
	}

	public void setDocid(String docid) {
		this.docid = docid;
	}

	public int getAtype() {
		return atype;
	}

	public void setAtype(int atype) {
		this.atype = atype;
	}

	public String getAcontent() {
		return acontent;
	}

	public void setAcontent(String acontent) {
		this.acontent = acontent;
	}

	public int getMt() {
		return mt;
	}

	public void setMt(int mt) {
		this.mt = mt;
	}

	public int getViewNum() {
		return viewNum;
	}

	public void setViewNum(int viewNum) {
		this.viewNum = viewNum;
	}

	public int getUsefulNum() {
		return usefulNum;
	}

	public void setUsefulNum(int usefulNum) {
		this.usefulNum = usefulNum;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getOrder() {
		return order;
	}

	public void setOrder(int order) {
		this.order = order;
	}

	public int getFrom() {
		return from;
	}

	public void setFrom(int from) {
		this.from = from;
	}

	public int getPubliced_doc() {
		return publiced_doc;
	}

	public void setPubliced_doc(int publiced_doc) {
		this.publiced_doc = publiced_doc;
	}

	public int getViewNumFake() {
		return viewNumFake;
	}

	public void setViewNumFake(int viewNumFake) {
		this.viewNumFake = viewNumFake;
	}

	public int getUsefulNumFake() {
		return usefulNumFake;
	}

	public void setUsefulNumFake(int usefulNumFake) {
		this.usefulNumFake = usefulNumFake;
	}

	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}

}
